<!DOCTYPE html>
<!--[if IE]><![endif]-->
<!--[if IE 8 ]><html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>">
<!--<![endif]-->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $title; ?></title>
<base href="<?php echo $base; ?>" />
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<?php if ($keywords) { ?>
<meta name="keywords" content= "<?php echo $keywords; ?>" />
<?php } ?>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" type="image/x-icon" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/bootstrap-responsive.css" />
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/fonts/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/flexslider.css" />
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/tfingi-megamenu/tfingi-megamenu-frontend.css" />
<?php 
	if($class == "common-home"){
		echo '<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/color-schemes/midnightblue.css"/>';
    }
	else{
    	echo '<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/color-schemes/turquoise.css"/>';
    }
?>
<!--<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,400i,300,700" rel="stylesheet" type="text/css" />
<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">-->
<?php foreach ($styles as $style) { ?>
<link href="<?php echo $style['href']; ?>" type="text/css" rel="<?php echo $style['rel']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<link href="http://fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic|Shadows+Into+Light" rel="stylesheet" type="text/css">

<?php echo $google_analytics; ?>
</head>
<body>
	 <div class="wrapper">
     	            <!-- Header -->
        <div class="header">
            <!-- Top bar -->
            <div class="top">
                <div class="container">
                    
                </div>
            </div>
            <!-- End class="top" -->
            <!-- Logo & Search bar -->
            <div class="bottom">
                <div class="container">
                    <div class="row">
                        <div class="span8">							
                            <div class="logo">
                                  <?php if ($logo) { ?>
                                      <a href="<?php echo $home; ?>">
                                         <img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" />
                                      </a>
                                  <?php } else { ?>
                                  	  <h1><a href="<?php echo $home; ?>"><?php echo $name; ?></a></h1>
                                  <?php } ?>
                            </div>
                        </div>
                        <div class="span4">
                            <div class="row-fluid">
                                <div class="span10">
                                    <!-- Search -->
                                    <div class="search">
                                        <div class="qs_s">
                                        	<?php echo $search; ?>
                                            <!-- Autocomplete results -->
                                            <div id="autocomplete-results" style="display: none;">	
                                                <ul>
                                                    <li>
                                                        <a title="Lisette Dress" href="product.html">
                                                            <div class="image">
                                                                <img src="img/thumbnails/db_file_img_48_60x60.jpg" alt="" />
                                                            </div>
                                                            <h6>Lisette Dress</h6>
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a title="Malta Dress" href="product.html">
                                                            <div class="image">
                                                                <img src="img/thumbnails/db_file_img_137_60x60.jpg" alt="" />
                                                            </div>
                                                            <h6>Malta Dress</h6>
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a title="Marais Dress" href="product.html">
                                                            <div class="image">
                                                                <img src="img/thumbnails/db_file_img_42_60x60.jpg" alt="" />
                                                            </div>
                                                            <h6>Marais Dress</h6>
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a title="Millay Dress" href="product.html">
                                                            <div class="image">
                                                                <img src="img/thumbnails/db_file_img_107_60x60.jpg" alt="" />
                                                            </div>
                                                            <h6>Millay Dress</h6>
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a title="Momoko Dress" href="product.html">
                                                            <div class="image">
                                                                <img src="img/thumbnails/db_file_img_132_60x60.jpg" alt="" />
                                                            </div>
                                                            <h6>Momoko Dress</h6>
                                                        </a>
                                                    </li>
                                                </ul>
                                            </div>
                                            <!-- End id="autocomplete-results" -->
                                        </div>
                                    </div>
                                    <!-- End class="search"-->
                                    
                                </div>
        
                                <div class="span2">
                                    
                                    <!-- Mini cart -->
                                    <!--<div class="mini-cart">
                                        <a href="cart.html" title="Go to cart &rarr;">
                                            <span>3</span>
                                        </a>									
                                    </div>-->
                                    <!-- End class="mini-cart" -->
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- End class="bottom" -->
        </div>
        <!-- End class="header" -->    
     </div>
	 <!-- Navigation -->
     <nav class="navigation">
         <div class="container">
             <div class="row">
                 <div class="span9">
                    <a href="#" class="main-menu-button">Navigation</a>
                    <!-- Begin Menu Container -->
                    <div class="megamenu_container">
   						<div class="menu-main-navigation-container">
        					<ul id="menu-main-navigation" class="main-menu">
            					<li class="menu-item-home menu-item-has-children megamenu-parent " data-width="">
                                	<a href="<?php echo HTTP_SERVER?>"><?php echo $text_home?></a>
                                </li>
                                <?php if(!empty($informations)) foreach ($informations as $information) { ?>
                                	<li class="menu-item-has-children megamenu-parent" data-width="550">
                                		<a href="<?php echo $information['href']; ?>" title="<?php echo $information['title']; ?>"><?php echo $information['title']; ?></a>
            						</li>
                                <?php }?>
                                <?php if ($categories) { ?>
            					<li class="menu-item-has-children"><a><?php echo $text_product_menu?></a>
                                    <ul class="sub-menu">
                                    	<?php foreach ($categories as $category) { ?>
                                        	<?php if ($category['children']) { ?>
                                        		<li class="menu-item-has-children"><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
                                                    <?php foreach (array_chunk($category['children'], ceil(count($category['children']) / $category['column'])) as $children) { ?>
                                                    <ul class="sub-menu">
                                                        <?php foreach ($children as $child) { ?>
                                                            <li><a href="<?php echo $child['href']; ?>"><?php echo $child['name']; ?></a></li>
                                                        <?php }?>
                                                    </ul>
                                                    <?php }?>
                                        		</li>
                                             <?php }?>
                                          <?php }?>                                       
                                    </ul>
                                </li>
                                <?php }?>
            					<li><a href="<?php echo $blogs_url ?>"><?php echo $blogs_menu?></a></li>
                                <li class="menu-item-has-children megamenu-parent" data-width="400">
                                    <a href="contact-us.html">Liên hệ</a>
                                    <ul class="sub-menu">
                                        <li class="megamenu-column"><a href="#MegaMenuColumn">Mega Menu Column</a></li>
                                        <li class="megamenu-heading"><a href="#MegaMenuHeading">Liên hệ</a></li>
                                        <li class="megamenu-content">
                                            <div class="wpcf7">
                                                <form action="" method="post" class="wpcf7-form" novalidate="novalidate">
                                                    <label>Your Name (required)</label>
                                                    <input type="text" name="your-name" value="" size="40"  aria-required="true" />
                                                    <label>Your Email (required)</label>
                                                    <input type="email" name="your-email" value="" size="40" aria-required="true" />
                                                    <label>Subject</label>
                                                    <input type="text" name="your-subject" value="" size="40"  />
                                                    <label>Your Message</label>
                                                    <textarea name="your-message" cols="40" rows="10" ></textarea>
                                                    <input type="submit" value="Send" class="btn btn-primary" />
                                                </form>
                                            </div>
                                        </li>
                                    </ul>
                                </li>
        					</ul>
    					</div>    
					</div>    
            	</div>
            	<div class="span3 visible-desktop"></div>
        	</div>        
   		</div>
	</nav>
<!-- End class="navigation" -->











<!--<body class="<?php echo $class; ?>">
<nav id="top">
  <div class="container">
    <?php echo $currency; ?>
    <?php echo $language; ?>
    <div id="top-links" class="nav pull-right">
      <ul class="list-inline">
        <li><a href="<?php echo $contact; ?>"><i class="fa fa-phone"></i></a> <span class="hidden-xs hidden-sm hidden-md"><?php echo $telephone; ?></span></li>
        <li class="dropdown"><a href="<?php echo $account; ?>" title="<?php echo $text_account; ?>" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $text_account; ?></span> <span class="caret"></span></a>
          <ul class="dropdown-menu dropdown-menu-right">
            <?php if ($logged) { ?>
            <li><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a></li>
            <li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
            <li><a href="<?php echo $transaction; ?>"><?php echo $text_transaction; ?></a></li>
            <li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
            <li><a href="<?php echo $logout; ?>"><?php echo $text_logout; ?></a></li>
            <?php } else { ?>
            <li><a href="<?php echo $register; ?>"><?php echo $text_register; ?></a></li>
            <li><a href="<?php echo $login; ?>"><?php echo $text_login; ?></a></li>
            <?php } ?>
          </ul>
        </li>
        <li><a href="<?php echo $wishlist; ?>" id="wishlist-total" title="<?php echo $text_wishlist; ?>"><i class="fa fa-heart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $text_wishlist; ?></span></a></li>
        <li><a href="<?php echo $shopping_cart; ?>" title="<?php echo $text_shopping_cart; ?>"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $text_shopping_cart; ?></span></a></li>
        <li><a href="<?php echo $checkout; ?>" title="<?php echo $text_checkout; ?>"><i class="fa fa-share"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $text_checkout; ?></span></a></li>
      </ul>
    </div>
  </div>
</nav>
<header>
  <div class="container">
    <div class="row">
      <div class="col-sm-4">
        <div id="logo">
          <?php if ($logo) { ?>
          	<a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" /></a>
          <?php } else { ?>
          	<h1><a href="<?php echo $home; ?>"><?php echo $name; ?></a></h1>
          <?php } ?>
        </div>
      </div>
      <div class="col-sm-5"><?php echo $search; ?>
      </div>
      <div class="col-sm-3"><?php echo $cart; ?></div>
    </div>
  </div>
</header>
<?php if ($categories) { ?>
<div class="container">
  <nav id="menu" class="navbar">
    <div class="navbar-header"><span id="category" class="visible-xs"><?php echo $text_category; ?></span>
      <button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button>
    </div>
    <div class="collapse navbar-collapse navbar-ex1-collapse">
      <ul class="nav navbar-nav">
        <?php foreach ($categories as $category) { ?>
        <?php if ($category['children']) { ?>
        <li class="dropdown"><a href="<?php echo $category['href']; ?>" class="dropdown-toggle" data-toggle="dropdown"><?php echo $category['name']; ?></a>
          <div class="dropdown-menu">
            <div class="dropdown-inner">
              <?php foreach (array_chunk($category['children'], ceil(count($category['children']) / $category['column'])) as $children) { ?>
              <ul class="list-unstyled">
                <?php foreach ($children as $child) { ?>
                <li><a href="<?php echo $child['href']; ?>"><?php echo $child['name']; ?></a></li>
                <?php } ?>
              </ul>
              <?php } ?>
            </div>
            <a href="<?php echo $category['href']; ?>" class="see-all"><?php echo $text_all; ?> <?php echo $category['name']; ?></a> </div>
        </li>
        <?php } else { ?>
        <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
        <?php } ?>
        <?php } ?>
      </ul>
    </div>
  </nav>
</div>
<?php } ?>
-->